<template>
  <div>
<ul>
  <li v-for="(item,index) in arr" :key="index">{{item}}</li>
</ul>
<button @click="btnFn()">走一走</button>
  </div>
</template>

<script>
export default {
  data () {
    return {
      arr: ['帅哥', '美女', '程序员']
    }
  },

  created () {

  },

  methods: {
    btnFn () {
      this.arr.push(this.arr[0])
      this.arr.splice(this.arr[0], 1)
    }
  }
}
</script>

<style scoped lang='less'>

</style>
